# -*- coding: utf-8 -*-

"""
Time    :2021/6/19 下午10:35
Author  :chenyang
Email   :chenyang.it@outlook.com
FileName: add_device.py
Software: PyCharm
"""
from wtforms import Form, StringField, validators

# 添加设备表单
class AddDevice(Form):
    serialnumber = StringField(label='serialnumber', validators=[validators.data_required(message='序列号为必填项！！！')])
    model = StringField(label='model')
    cpu_model = StringField(label='cpu_model')
    cpu_cores = StringField(label='cpu_cores')
    bmc_address = StringField(label='bmc_address')
    purpose = StringField(label='purpose')
    owner = StringField(label='owner')
    others = StringField(label='others')
